package src.main.java.modules.container;

import java.rmi.RemoteException;

import com.pagodabox.mc437_2012s2_banco_ws.ws.BancoApiPortTypeProxy;
import com.pagodabox.mc437_2012s2_banco_ws.ws.Boleto;

public class BancoCaller {
	public static Boleto emitirBoleto(String cnpj, String token, String cliente, Float valor){
		Boleto boleto = new Boleto();
		BancoApiPortTypeProxy proxy = new BancoApiPortTypeProxy("http://mc437-2012s2-banco-ws.pagodabox.com/ws/BancoApi");
		
		try {
			boleto = proxy.emitir_boleto(cnpj, token, cliente, valor);
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return boleto;
	}
}
